package com.timebank.volunteer.service;

import com.timebank.volunteer.pojo.entity.VolunteerBlackList;
import com.timebank.volunteer.pojo.vo.VolunteerBlackListVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 志愿服务黑名单
 * @author shiliuyinzhen
 */
@Service
public interface VolunteerBlackListService {

    /**
     * 根据用户Ids和志愿服务Id新增黑名单
     * @param userIds
     * @param volunteerId
     */

   int insertBlackListByUserIdsAndVolunteerId(Long[] userIds, Long volunteerId);

    /**
     * 根据志愿服务Id查询黑名单
     * @param volunteerId
     * @return
     */
    List<VolunteerBlackListVO> getBlackListByVolunteerId(Long volunteerId);

    /**
     * 根据志愿服务Id和用户Ids批量移除黑名单
     * @param volunteerId
     * @param userIds
     * @return
     */
    int removeBlackListByVolunteerIdAndUserIds(Long volunteerId, Long[] userIds);

    /**
     * 根据志愿服务Id和用户Id查询黑名单
     * @param volunteerId
     * @param userId
     * @return
     */
    List<VolunteerBlackListVO> getBlackListByVolunteerIdAndUserId(Long volunteerId, Long userId);
}
